home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inventor Labs: Technology
/
INVENTORLABS_TECHNOLOGY.BIN
/
mac
/
FILES
/
EDISON.DIR
/
00063_Script_Flourscope parent
< prev
next >
Wrap
Text File
|
1997-05-26
|
2KB
|
86 lines
--p Flourscope
-- gFlourscopeObj
property pHandSprite, pHandCast
property pMouseHOffSet, pMouseVOffSet
property pConstrainRect, pActivateSprite
property pActive
global gUtilityObj, gScoreEventObj
---------------------------------------------------------------------------------------------------------
on mInit me
set pHandCast = the number of cast "EFLRHAND.PIC"
set pHandSprite = 5
set pActivateSprite = 3
mSetCursors(gUtilityObj,[7:#OPERATE])
return( me )
end mInit
---------------------------------------------------------------------------------------------------------
on mActivate me
mUnSetOneCursor (gUtilityObj, 7)
mSetCursors(gUtilityObj,[4:#OPERATE,2:#OPERATE])
set pConstrainRect = the rect of sprite pActivateSprite
set pMouseHOffSet = the mouseh
set pMouseVOffSet = the mousev
puppetsprite pHandSprite, True
set the castnum of sprite pHandSprite = 0
end mActivate
---------------------------------------------------------------------------------------------------------
on mPerform me
if rollover( pActivateSprite ) then
set pActive = TRUE
set the castnum of sprite pHandSprite = pHandCast
set the cursor of sprite 2 = 200
end if
set mousePnt = point(the mouseh, the mousev)
set newloch = the mouseh
set newlocv = the mousev
if newlocv > 335 then
set pActive = FALSE
set the cursor of sprite 2 = 0
set the castnum of sprite pHandSprite = 0
end if
if pActive then
if newlocv < 210 then set newlocv = 210
if newloch > 300 then set newloch = 300
else if newloch < 193 then set newloch = 193
set the loch of sprite pHandSprite = newloch
set the locv of sprite pHandSprite = newlocv
end if
go the frame
end mperform
---------------------------------------------------------------------------------------------------------
on mclose me
puppetsprite pHandSprite, false
munSetCursors(gUtilityObj)
end mclose
---------------------------------------------------------------------------------------------------------
on mPullout me
mclose me
mGoFrameAndPullOut (gScoreEventObj, "Fluoroscope BO")
end mPullout
---------------------------------------------------------------------------------------------------------